export default [
  {
    url: '/dev-api/user/login',
    method: 'post',
    response: ({ body }) => {
      if (body.userName === 'jiangqi' && body.passWord === '111111') {
        return {
          code: 200,
          data: {
            userId: 1,
            avatar: 'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png',
            userName: 'jiangqi',
            passWord: '111111',
            desc: '平台管理员',
            roles: ['平台管理员'],
            buttons: ['cuser.detail'],
            routes: ['home'],
            token: 'token1'
          },
          message: 'success'
        }
      } else {
        return {
          code: 201,
          data: null,
          message: '账号密码错误'
        }
      }
    }
  },
  {
    url: '/dev-api/user/info',
    method: 'get',
    response: (request) => {
      console.log(request);
      return {
        code: 200,
        data: '我是蒋大琪',
        message: 'success'
      }
    }
  }
]